package bean;

public class page {
	private int totalPage;
	private int CurrentPage; 
		
	 
	private int totalRecord;
	private int currentRecord;
	private int pageSize = 8;
	public int getCurrentPage(){
		return CurrentPage;
	}
	public void setCurrentPage(int currentRecord,int pageSize) {
		 if(currentRecord%pageSize==0){
			 CurrentPage=currentRecord/pageSize;
		 }
		 else {
			CurrentPage=currentRecord/pageSize+1;
		}
	}

     public int currentRecord() {
		return currentRecord;

	}

	public void setCurrentRecord(int currentRecord) {
		this.currentRecord = currentRecord;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotallPage() {
		return totalPage;
	}

	public void setTotallPage(int totallRecord, int pageSize) {
		if (totallRecord % pageSize == 0) {
			totalPage = totalRecord / pageSize;
		} else {
			totalPage = totalRecord / pageSize + 1;
		}
	}

	public int getTotalRecord() {
		return totalRecord;
	}

	public void setTotalRecord(int totalRecord) {
		this.totalRecord = totalRecord;
	}

	 
	public int getCurrentRecord() {
	 
		return currentRecord;
	}

}
